<html>
<head><meta charset="utf-8"><title>Workspace File Detection · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Workspace.20File.20Detection.html">Workspace File Detection</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="214407246"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Workspace%20File%20Detection/near/214407246" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Zac Pullar-Strecker <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Workspace.20File.20Detection.html#214407246">(Oct 24 2020 at 03:43)</a>:</h4>
<p>Is there a good way to determine which (cargo) workspace a definition/file belongs to? All of the existing stuff seems tied to the 'vfs paths are opaque handles' idea which is good until you actually need the path.</p>
<p>I need it for <a href="https://github.com/rust-analyzer/rust-analyzer/issues/6332">#6332</a> so I can find the correct target directory to look for local documentation in.</p>



<a name="214416893"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Workspace%20File%20Detection/near/214416893" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Workspace.20File.20Detection.html#214416893">(Oct 24 2020 at 09:07)</a>:</h4>
<p><span class="user-mention" data-user-id="244843">@Zac Pullar-Strecker</span> see how <code>handle_runnables</code> work in <code>handlers.rs</code></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>